package com.a01_2021.thousandstimes.saas.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.saas.entity.UserMapping;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-03-24
 */
public interface IUserMappingService extends IService<UserMapping> {

    UserMapping getUserMapping(String username);

    UserMapping addUserMapping(String username, long instanceId);

    boolean deleteUserMapping(String username, long instanceId) throws CustomException;

}
